<template>
  <div>
      <button @click="cHandle">123</button>
      <h2 v-zhiling="msg">11</h2>
      <h3>{{date | format}}</h3>
  </div>
</template>

<script>
import moment from 'moment';
export default {
    data() {
        return {
            msg:'abc',
            date:Date.now()
        }
    },
    filters: {
        format(params){
            return moment(params).format('YYYY-MM-DD');
        }
    },
    methods: {
        cHandle(){
            this.$emit('erha',123);
        }
    },
    computed: {
        
    },
    components: {
        
    }
}
</script>

<style>

</style>